Sets up a notification channel to start watching for all Changes resources.
Input
| Name |
Type
|
Description
|
| Id
|
String
|
Requried. A property string that uniquely identifies this new notification channel within
your project.
|
| Address
|
String
|
Requried. A property string set to the URL that listens and responds to notifications for
this notification channel.
|
| ChannelToken
|
String
|
A token property that specifies an arbitrary string value to use as a channel token.
|
| Expiration
|
String
|
A property string set to a Unix timestamp (in ms) of the date and time when you want the
Drive API to stop sending messages for this notification channel.
|
| ResourceId
|
String
|
An opaque ID that identifies the resource being watched on this channel.
|
| ResourceURI
|
String
|
A version-specific identifier for the watched resource.
|
| Payload
|
Boolean
|
An optional boolean value to indicate whether payload is wanted.
|
| AdditionalParameters
|
Object
|
Optional. A json object used for specifying additional parameters that controll delivery
channel behavior. Example : {"key1":"value1","key2":"value2"}
|
Result Set Columns
| Name |
Type |
Description
|
| Kind
|
String
|
The id for the file which was uploaded or updated.
|
| Id
|
String
|
ID you specified for this channel.
|
| ResourceId
|
String
|
ID of the watched resource.
|
| ResourceUri
|
String
|
Version-specific ID of the watched resource.
|
| Token
|
String
|
Present only if one was provided.
|
| Expiration
|
String
|
Actual expiration time as Unix timestamp (in ms), if applicable.
|